[PATCH 09/14] imsm: print-out error message when volume validationfails

From 54ad2b943c730e162d9cc69cf6746256eb2cb651 Mon Sep 17 00:00:00 2001
From: Marcin Labun <marcin.labun [at] intel.com>
Date: Thu, 3 Mar 2011 15:13:08 +0100
Subject: [PATCH 09/14] imsm: print-out error message when volume validation fails

Print-out error message when volume geometry fails to comply with
OROM/EFI controller's capabilities.

Signed-off-by: Marcin Labun <marcin.labun [at] intel.com>
---
super-intel.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/super-intel.c b/super-intel.c
index e65a46c..2539efd 100644
--- a/super-intel.c
+++ b/super-intel.c
[at] [at] -4284,9 +4284,11 [at] [at] static int validate_geometry_imsm_volume(struct supertype *st, int level,
if (!super)
return 0;

- if (!validate_geometry_imsm_orom(super, level, layout, raiddisks, chunk, verbose))
+ if (!validate_geometry_imsm_orom(super, level, layout, raiddisks, chunk, verbose)) {
+ fprintf(stderr, Name ": RAID gemetry validation failed. "
+ "Cannot proceed with the action(s).\n");
return 0;
-
+ }
if (!dev) {
/* General test: make sure there is space for
* 'raiddisks' device extents of size 'size' at a given
[at] [at] -4493,7 +4495,8 [at] [at] static int validate_geometry_imsm(struct supertype *st, int level, int layout,
struct mdinfo *sra;
int is_member = 0;

- /* if given unused devices create a container
+ /* load capability
+ * if given unused devices create a container
* if given given devices in a container create a member volume
*/
if (level == LEVEL_CONTAINER) {
--
1.6.4.2

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Marcin.Labun [ Di, 08 März 2011 16:21 ] [ ID #2056287 ]
Linux » gmane.linux.raid » [PATCH 09/14] imsm: print-out error message when volume validationfails

Vorheriges Thema: [PATCH 10/14] imsm: add maximum number of disk validation in RAIDarray
Nächstes Thema: [PATCH 08/14] imsm: do not publish OROM/EFI unsupported arrays